/*
	练习1.21 对象记录
*/
#include<iostream>
#include"../include/Sales_Item.h"

int main(){
	Sales_item item1,item2;
	std::cin >> item1 >> item2;
	if (item1.isbn() == item2.isbn()){
		std::cout << item1 + item2 << std::endl;
	} else {
		std::cout << "号码不一致!" << std::endl;
	}
	
	
	return 0;
}